home *** CD-ROM | disk | FTP | other *** search
- 21
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- ReadRegString
- --- RECORDSEPARATOR ---
- Platform:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Windows
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Description:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baReadRegString gets a string from the Windows Registry.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Usage:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Result = ReadRegString( KeyName, ValueName, Default, Branch )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Arguments:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- String, String, String, String.
- --- RECORDSEPARATOR ---
- KeyName is the name of the key.
- --- RECORDSEPARATOR ---
- ValueName is the name of the value. Under 16 bit, this value is ignored.
- --- RECORDSEPARATOR ---
- Default is the string that is returned if the key/value doesn't exist.
- --- RECORDSEPARATOR ---
- Branch is the branch of the registry to use. Can be one of the following:
- --- RECORDSEPARATOR ---
- "HKEY_CLASSES_ROOT"
- --- RECORDSEPARATOR ---
- "HKEY_CURRENT_USER"
- --- RECORDSEPARATOR ---
- "HKEY_LOCAL_MACHINE"
- --- RECORDSEPARATOR ---
- "HKEY_USERS"
- --- RECORDSEPARATOR ---
- ΓÇ£HKEY_CURRENT_USERΓÇ¥
- --- RECORDSEPARATOR ---
- ΓÇ£HKEY_DYN_DATAΓÇ¥
- --- RECORDSEPARATOR ---
- Under 16 bit, only the HKEY_CLASSES_ROOT branch is accessible - the Branch
- --- RECORDSEPARATOR ---
- setting is ignored.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Returns:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- String.
- --- RECORDSEPARATOR ---
- Returns the value associated with the Keyname. If the Keyname doesn't exist, then
- --- RECORDSEPARATOR ---
- the return will be the Default string.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Examples:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Director:
- --- RECORDSEPARATOR ---
- set Name = baReadRegString( "Courses\Computers\101", "CurrentUser", "Error",
- --- RECORDSEPARATOR ---
- "HKEY_CLASSES_ROOT" )
- --- RECORDSEPARATOR ---
- Authorware:
- --- RECORDSEPARATOR ---
- Name := baReadRegString( "Courses\\Computers\\101", "CurrentUser", "Error",
- --- RECORDSEPARATOR ---
- "HKEY_CLASSES_ROOT" )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Notes:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- A Registry entry consists of keys and sub-keys, similar to the directories and sub-
- --- RECORDSEPARATOR ---
- directories in the Windows file system. 32 bit Windows adds Values to the registry.
- --- RECORDSEPARATOR ---
- These can be thought of as files within the key. These Values are not available
- --- RECORDSEPARATOR ---
- under 16 bit - the ValueName argument is ignored.
- --- RECORDSEPARATOR ---
- Also in 16 bit, this function can only obtain values from keys located in the
- --- RECORDSEPARATOR ---
- HKEY_CLASSES_ROOT branch of the Registry.
- --- RECORDSEPARATOR ---
- Under Windows 3.1, the KeyName can not contain any spaces.
- --- RECORDSEPARATOR ---
- This function returns a maximum of 2000 characters.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- See also:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baWriteRegString
- --- RECORDSEPARATOR ---
- baReadRegNumber
- --- RECORDSEPARATOR ---
- baWriteRegNumber
- --- RECORDSEPARATOR ---
- baDeleteReg